package com.xysoft.framework.orm;

import java.io.Serializable;

import org.hibernate.Criteria;
import org.hibernate.SessionFactory;

public interface EntityDao<T> {

	String getEntityName();

	T createNew();

	void persist(T entity);

	void delete(T entity);

	T get(Serializable id);

	T load(Serializable id);

	Criteria createQuery();
	
	SessionFactory getSessionFactory();
}
